package com.rainman.simpleredis.demo.controller;


import com.rainman.simpleredis.core.SimpleRedis;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * 测试唯一id生成器
 */
@RestController
@RequestMapping("/unqueId")
public class DemoUnqueIdController {

    @Autowired
    SimpleRedis simpleRedis;


    @RequestMapping("/t")
    public String t(){
        System.out.println("进入方法");

        for(int i=0;i<1200;i++){
            System.out.println(simpleRedis.uniqueIdGetOne());
        }

        return "999";

    }

}
